def hanol(n,a,b,c):
    if n == 1:
        print('将第{}个盘子，从{}，移动到{}'.format(n,a,c))
    else:
        hanol(n-1,a,c,b)
        print('将第{}个盘子，从{}，移动到{}'.format(n,a,c))
        hanol(n-1,b,a,c)

if __name__=='__main__':
    hanol(6,'a','b','c')